body {
    position: relative;
    margin: 0;
    background-color: black;
    height: 130vh;
}

.navigation {
  position: fixed;
  top: 4vh;
  right: 2.5vw;
  display: flex;
  align-items: center;
  gap: clamp(28px, 3.4vw, 76px);
  color: white;
  font-size: var(--font-size-navigation);
  font-weight: 400;
  text-transform: lowercase;
  font-variant-caps: small-caps;
  letter-spacing: var(--letter-spacing-navigation);
}

.navigation a {
  color: inherit;
  text-decoration: none;
}

.navigation a,
.navigation span {
  white-space: nowrap;
}

.image {
  position: absolute;
  bottom: 0;
  left: 50%;
  /* Volle Fensterbreite: Das Bild füllt den Bildschirm auf jeder Grösse
     von Rand zu Rand. Die Höhe ergibt sich aus dem Seitenverhältnis. */
  width: 95%;
  aspect-ratio: 2755 / 1444;
  transform: translateX(-50%);
  container-type: inline-size;
}

.image img {
  display: block;
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.wort {
  position: absolute;
  z-index: 1;
  visibility: hidden;
  color: white;
  /* Skaliert mit dem Bild, damit die Beschriftungen ihre Proportionen behalten. */
  font-size: 1cqw;
  font-weight: 700;
  letter-spacing: 0.10em;
  white-space: nowrap;
  text-transform: none;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  opacity: var(--scroll-progress, 0);
  translate: 0 var(--scroll-offset, 35px);
}

a.wort {
  text-decoration: none;
  cursor: pointer;
}

body.words-visible .wort {
  visibility: visible;
}

body.no-scroll-animation .wort {
  opacity: 1;
}

/* Hover: Links werden leicht transparent, damit man sieht, dass sie klickbar sind.
   Steht bewusst nach den Regeln oben, damit diese die Deckkraft nicht überschreiben. */
.navigation a:hover,
a.wort:hover {
  opacity: 0.6;
}

/* Die Positionen orientieren sich am Screenshot und bleiben am Bild verankert. */
.wort-skizzenbuch { left: 10%; top: 30%; }
.wort-paris-links { left: 20%; top: 27.8%; }
.wort-paris-mitte { left: 30%; top: 5.5%; }
.wort-paris-links span:first-child,
.wort-paris-mitte span:first-child {
  position: relative;
  top: -15%;
}
.wort-prepress-mitte { left: 48%; top: -5.6%; }
.wort-london-mitte { left: 55%; top: -3.4%; }
.wort-london-mitte span:nth-of-type(2) {
  position: relative;
  top: 8%;
}
.wort-london-rechts { left: 71.5%; top: 7.7%; }
.wort-prepress-rechts { right: 18%; top: 26.6%; }
.wort-licht-farbe-form { right: 5.5%; top: 57.8%; }

@media (max-width: 600px) {
  .navigation {
    top: 5vh;
    right: 5vw;
    left: 5vw;
    justify-content: flex-end;
    gap: clamp(16px, 5vw, 28px);
    font-size: var(--font-size-navigation);
  }

  .image {
    width: 100%;
  }
}

/* ===========================================================
   Handy (unter 40rem / 640px): Bild angeschnitten
   -----------------------------------------------------------
   Gleiches Prinzip wie auf dem Laptop, aber das Bild ist
   2.5-mal so breit wie der Bildschirm und wird links und rechts
   angeschnitten. So bleiben die Namen gross genug zum Lesen und
   Antippen. Die Positionen stammen aus dem Handy-Entwurf.
   Ausnahme von «mobile first»: Die Startseite ist von Desktop
   her aufgebaut, darum überschreibt dieser Block die Werte oben.
   =========================================================== */
@media (max-width: 39.999rem) {
  /* Das Bild ist breiter als der Bildschirm: seitlich abschneiden,
     damit man nicht nach links oder rechts wischen kann.
     Auf html UND body: Safari auf dem iPhone ignoriert die Regel sonst beim Wischen.
     hidden steht als Rückfallwert für ältere Browser, die clip nicht kennen.
     clip schneidet hart ab: Anders als bei hidden lässt sich seitlich gar nicht scrollen. */
  html,
  body {
    overflow-x: hidden;
    overflow-x: clip;
  }

  /* Bleibt mittig (left: 50% und translateX von oben), nur grösser. */
  .image {
    width: 200vw;
  }

  /* Schriftgrösse hängt weiter an der Bildbreite (cqw), ergibt hier etwa 15px. */
  .wort {
    font-size: 1.4cqw;
  }

  /* Positionen in % des Bildes, Reihenfolge wie auf dem Laptop.
     bottom statt top: Jeder Name beginnt an derselben Stelle über
     der Buchkante, egal wie lang er ist. */
  .wort-skizzenbuch       { left: 27%; top: auto; bottom: 70%; }
  .wort-paris-links       { left: 32%; top: auto; bottom: 86.7%; }
  .wort-paris-mitte       { left: 39%; top: auto; bottom: 101.1%; }
  .wort-prepress-mitte    { left: 47.4%; top: auto; bottom: 95.6%; }
  .wort-london-mitte      { left: 58%; top: auto; bottom: 94.5%; }
  .wort-london-rechts     { left: 52%; top: auto; bottom: 90%; }
  .wort-prepress-rechts   { left: 65.2%; right: auto; top: auto; bottom: 87.8%; }
  .wort-licht-farbe-form  { left: 70.5%; right: auto; top: auto; bottom: 72.2%; }
}
